
//------------------------------------------------------------------------------

namespace Apps.Models
{
     using System.ComponentModel.DataAnnotations.Schema;
    using System;
    using System.Collections.Generic;

    [Table("MIS_ARTICLE_CATEGORY")]
    public partial class MIS_Article_Category
    {
        public MIS_Article_Category()
        {
            this.MIS_Article = new HashSet<MIS_Article>();
            this.MIS_Article_Category1 = new HashSet<MIS_Article_Category>();
        }

        [Column("ID"), System.ComponentModel.DataAnnotations.Key]
        public string Id { get; set; }
        [Column("CHANNELID")]
        public Nullable<int> ChannelId { get; set; }
        [Column("NAME")]
        public string Name { get; set; }
        [Column("PARENTID")]
        public string ParentId { get; set; }
        [Column("SORT")]
        public Nullable<int> Sort { get; set; }
        [Column("IMGURL")]
        public string ImgUrl { get; set; }
        [Column("BODYCONTENT")]
        public string BodyContent { get; set; }
        [Column("CREATETIME")]
        public Nullable<System.DateTime> CreateTime { get; set; }
        [Column("ENABLE")]
        public bool Enable { get; set; }

        public virtual ICollection<MIS_Article> MIS_Article { get; set; }
        public virtual ICollection<MIS_Article_Category> MIS_Article_Category1 { get; set; }
        public virtual MIS_Article_Category MIS_Article_Category2 { get; set; }
    }
}
